import os
from flask import Flask
app = Flask(__name__)



@app.route('/update')
def update():
   print(os.getcwd() + '/update.sh')
   os.system(os.getcwd() + '/update.sh')
   return "success"


if __name__ == '__main__':
    app.run('0.0.0.0','30002')
